<!--
@Time:2021/11/27 10:57
@File:site.py
@Author:常雷
@Software:PyCharm
-->
{% extends 'base.html' %}
{% block title %}
    <title>{{ user_obj.username }} 的站点</title>
{% endblock %}

{% block content %}
    <ul class="media-list">
        {% for article_obj in article_list %}
            <li class="media">
                <h4 class="media-heading"><a href="/{{ username }}/article/{{ article_obj.pk }}/">{{ article_obj.title }}</a></h4>
                <div class="media-left">
                    <a href="#">
                        <img class="media-object" src="/media/{{ article_obj.blog.userinfo.avatar }}" width="50px" alt="...">
                    </a>
                </div>
                <div class="media-body">
                    {{ article_obj.desc }}
                </div>
                <br>
                {# posted  2021-11-26  jason @  评论0  点赞0 编辑 #}
                <div class="pull-right">
                    <span>posted&nbsp;</span>
                    <span>{{ article_obj.create_time|date:'Y-m-d' }}&nbsp;</span>
                    <span>{{ article_obj.blog.userinfo.username }}&nbsp;@&nbsp;</span>
                    <span><span class="glyphicon glyphicon-comment" aria-hidden="true"></span>评论{{ article_obj.comment_num }}&nbsp;</span>
                    <span><span class="glyphicon glyphicon-thumbs-up"></span>点赞{{ article_obj.up_num }}</span>
                    <span><a href="#">编辑</a></span>
                </div>
            </li>
            <hr>
        {% endfor %}
    </ul>
    <div class="pull-right">
        {{ page_obj.page_html|safe }}
    </div>
{% endblock %}